package com.foo.service.impl;

import com.foo.entity.SysUser;
import com.foo.mapper.SysUserMapper;
import com.foo.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public List<SysUser> queryAll() {
        return sysUserMapper.queryAll();
    }

    @Override
    public SysUser selectInfo(Long Id) {

        return sysUserMapper.selectInfo(Id);
    }

    @Override
    public SysUser login(String username, String password) {
        return sysUserMapper.login(username,password);
    }
}
